Page({
  data: {
    userInfo: {
      avatarUrl: 'https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0',
      nickName: '访客',
      userId: '123456'
    }
  },
  onLoad() {
    // 这里可以添加获取用户信息的逻辑
  },
  navigateTo(event) {
    const { page } = event.currentTarget.dataset;
    wx.navigateTo({
      url: `../${page}/${page}`
    });
  }
})